//
//  ScreenLayout.h
//  coyote
//
//  Created by jenkins on 2022/9/13.
//  Copyright © 2022 500wan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, LayoutScreenScaleStyle){
    LayoutScreenScaleStyleSingle = 1,
    LayoutScreenScaleStyleDouble = 2,
};

#define Layout_X(X) [ScreenLayout layoutScreenSizeWith375XSize:X]
#define Layout_X_Scale(X,Y) [ScreenLayout layoutScreenSizeWith375XSize:X scaleStyle:Y]
#define kLineSize [ScreenLayout lineSize]
#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define kScreenHeight [UIScreen mainScreen].bounds.size.height


#define kSafeTop [ScreenLayout safeTop]
#define kSafeBottom [ScreenLayout safeBottom]
#define kSafeLeft [ScreenLayout safeLeft]
#define kSafeRight [ScreenLayout safeRight]

@interface ScreenLayout : NSObject

+(CGFloat) safeTop;
+(CGFloat) safeBottom;
+(CGFloat) safeLeft;
+(CGFloat) safeRight;



+(CGFloat) layoutScreenSizeWith375XSize:(CGFloat) size;
+(CGFloat) layoutScreenDoubleScaleSizeWith375XSize:(CGFloat) size;
+(CGFloat) lineSize;
+(CGFloat) layoutScreenSizeWith375XSize:(CGFloat) size scaleStyle:(LayoutScreenScaleStyle) scaleStyle;
@end

NS_ASSUME_NONNULL_END
